package com.lmc.shuiyin.one;

import com.lmc.shuiyin.one.converter.Converter;
import com.lmc.shuiyin.one.converter.DftConverter;
import com.lmc.shuiyin.one.dencoder.Decoder;
import com.lmc.shuiyin.one.dencoder.Encoder;
import com.lmc.shuiyin.one.dencoder.TextEncoder;
import org.opencv.core.Core;

public class Test {
    public static void main(String[] args) {
        System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
        Converter converter = new DftConverter();
        Encoder encoder = new TextEncoder(converter);
        Decoder decoder = new Decoder(converter);
        encoder.encode("C:\\tools\\yinhua.png", "CheShenWeiWu", "C:\\tools\\yinhua2.png");
        decoder.decode("C:\\tools\\yinhua2.png", "C:\\tools\\yinhua3.png");
        decoder.decode("C:\\tools\\444.jpg", "C:\\tools\\555.jpg");
    }
}
